
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">流水号：</td>
		<td width="30%">#{[$result.id]}({[$result.oper_t]})</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">员工：</td>
		<td><input type="text" name="emp" id="emp" size="16"
			value="{[$result.emp]}:{[$result.emp_t]}" title="{[$t.emp_|emp:'员工']}"></td>
		<td align="right">名称：</td>
		<td><input type="text" name="name" size="16" value="{[$result.name]}"></td>
	</tr>
	<tr>
		<td align="right">分机：</td>
		<td><input type="text" name="exten" size="8" value="{[$result.exten]}" title="请输入分机号码，如2002，6006，8008"></td>
		<td align="right">最大时长：</td>
		<td><input type="text" name="timeout" size="10" value="{[$result.timeout|default:'1200']}" title="通话最长时间，超过此时长，系统会强制断线挂机。单位：秒"></td>
	</tr>
	<tr>
		<td align="right">无条件呼转：</td>
		<td><input type="text" name="exten_unconditional"
				id="exten_unconditional" value="{[$result.cf]}" size="16"> <input
				type="checkbox" name="c_unconditional" id="c_unconditional"
				value="1"></td>
		<td align="right">呼入：</td>
		<td><select name='record_in'> 
		{[html_options options=$recording_option selected=$result.record_in]}
		</select></td>
	</tr>
	<tr>
		<td align="right">不可用呼转：</td>
		<td><input type="text"
			name="exten_unavailable" id="exten_unavailable"
			value="{[$result.cfu]}" size="16"> <input type="checkbox" name="c_unavailable"
			id="c_unavailable" value="1"> </td>
		<td align="right">呼出：</td>
		<td><select name='record_out'> 
		{[html_options options=$recording_option selected=$result.record_out]}
		</select></td>
	</tr>
	<tr>
		<td align="right">占线时呼转：</td>
		<td>
			<input type="text" name="exten_busy" id="exten_busy"
			value="{[$result.cfb]}" size="16"> <input type="checkbox" name="c_busy" id="c_busy" value="1"></td>
		<td align="right">设置免打扰：</td>
		<td class="on_off"><input type="checkbox" name="c_dnd" id="c_dnd" value="1" {[if $result.dnd eq 'YES']}checked{[/if]}></td>
	</tr>		
</table>
</form>

<script type='text/javascript' src='/js/plugin/iphone-style-checkboxes.js?r={[$smarty.now]}'></script>
<link type="text/css" href="/js/plugin/iphone-style-checkboxes.css?r={[$smarty.now]}"  rel="stylesheet"/>

<script type="text/javascript" src="js/emp/exten/edit.js?r={[$smarty.now]}"></script>
